package com.koron.order.concession.mapper;

import com.koron.order.concession.bean.po.ConcessionPo;
import com.koron.order.concession.bean.query.ConcessionQuery;
import com.koron.order.concession.bean.vo.ConcessionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 让步接收单信息主表(Concession)表数据库访问层
 *
 * @author zhouj
 * @since 2022-01-14 09:51:46
 */
public interface ConcessionMapper {

    int insertOrUpdate(ConcessionPo concession);

    int insertOrUpdateBatch(@Param("list") List<ConcessionPo> concessionList);

    int insert(ConcessionPo concession);

    int insertBatch(@Param("list") List<ConcessionPo> concessionList);

    int update(ConcessionPo concession);

    int deleteById(String id);

    ConcessionPo queryById(String id);

    List<ConcessionVo> queryList(ConcessionQuery concessionQuery);

}